#!/usr/bin/env node

const EventEmitter = require('events').EventEmitter;

function Radio(station){

  let that = this;

  for(let m in EventEmitter.prototype){
    this[m] = EventEmitter.prototype[m];
  }

  setTimeout(()=>{
    self.emit('play',station);
  },0);

  setTimeout(()=>{
    self.emit('stop',station);
  },5000);
}

module.exports = Radio;
